package org.jili.novoland;

import org.jili.novoland.listener.BattleListener;
import org.jili.novoland.listener.ControlListener;
import org.jili.novoland.listener.TitleListener;
import org.jili.novoland.scene.GameScene;
import org.jili.novoland.util.Cfg;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class NovolandActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);
        this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        this.requestWindowFeature(Window.FEATURE_NO_TITLE);

        Cfg.setConfiguration(this);

        GameScene battleFieldScene = new GameScene(this);
        ControlListener controlListener = new ControlListener(new TitleListener(this));
        battleFieldScene.setController(controlListener);
        setContentView(battleFieldScene);
    }
}